﻿using FluentValidation;
using Mes.Application.DTO.Inputs.WorkOrders;

namespace Mes.Application.Web.Validators.WorkOrders
{
    public class UpdateJobStateInputValidator : AbstractValidator<UpdateJobStateInput>
    {
        public UpdateJobStateInputValidator()
        {
            RuleFor(x => x.State_Desc).NotEmpty().WithMessage("工艺状态描述不能为空")
                                 .Length(1, 40).WithMessage("工艺状态描述长度必须在1到40之间");
        }
    }
}
